package com.jbit.examSystem.service.impl;

import com.jbit.examSystem.dao.GradeDao;
import com.jbit.examSystem.pojo.Grade;
import com.jbit.examSystem.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {
    @Autowired
    private GradeDao gradeDao;

    @Override
    public List<Grade> getAllGrade() {
        List<Grade> grades = gradeDao.getAllGrade();
        return grades;
    }
}
